package com.zxl.common.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zxl.common.model.bo.shopping.ShoppingDelete;
import com.zxl.common.model.bo.shopping.ShoppingEdit;
import com.zxl.common.model.pojo.SysShoppingCart;
import com.zxl.common.model.vo.goods.GoodsCartVo;

import java.util.List;

/**
 * <p>
 * 购物车 服务类
 * </p>
 *
 * @author zxw
 * @since 2023-03-30
 */
public interface SysShoppingCartService extends IService<SysShoppingCart> {

    void add(ShoppingEdit shoppingEdit);

    void lessen(ShoppingEdit shoppingEdit);

    List<GoodsCartVo> delete(ShoppingDelete shoppingDelete);

    void updateNum(Integer memberId,String goodsCode, Integer goodsNum);

    List<GoodsCartVo> getMemberGoodsCart(Integer userId);
}
